#ifndef TESTBD_H
#define TESTBD_H

#include <QObject>
#include <QStringList>
#include <QList>
#include <QTime>
#include <QDataStream>

#define FILE_NAME_SIZE 5

class TestBD : public QObject
{
public:
    TestBD();

    void addTest(const QString &name, quint16 numVis);
    void setData(QList<QStringList> data);
    void delTest(const QString &name);

    QString getTestFileByName(const QString &name) const;
    quint32 count() const;
    void setCount(quint32 c);
    QList<QStringList> getData() const;

private:
    quint32 _count;
    QList<QStringList> data;

    QString newFileName() const;
};

QDataStream &operator <<(QDataStream &out, const TestBD &testdb);
QDataStream &operator >>(QDataStream &in, TestBD &testdb);

#endif // TESTBD_H
